package com.adong.service.impl;

import com.adong.dao.UserDao;
import com.adong.dao.impl.UserDaoImpl;
import com.adong.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author com.adong
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource(name = "userDaoImpl")
    private UserDao userDao;

    @Override
    public void save() {
        System.out.println("UserServiceImpl");
        userDao.save();
    }

}

